<?php
/**
 * @copyright	Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * Banners component helper.
 *
 * @package		Joomla.Administrator
 * @subpackage	com_banners
 * @since		1.6
 */
class JoomDocHelper
{
	/**
	 * Configure the Linkbar.
	 *
	 * @param	string	The name of the active view.
	 *
	 * @return	void
	 * @since	1.6
	 */
	public static function addSubmenu($vName)
	{
		JSubMenuHelper::addEntry(
			JText::_('JOOMDOC_DOCUMENTS'),
			'index.php?option=com_joomdoc&view=documents',
			$vName == 'documents'
		);
		
		JSubMenuHelper::addEntry(
				JText::_('JOOMDOC_LICENSES'),
				'index.php?option=com_joomdoc&view=licenses',
				$vName == 'documents'
		);

		JSubMenuHelper::addEntry(
			JText::_('JCATEGORIES'),
			'index.php?option=com_categories&extension=com_joomdoc',
			$vName == 'categories'
		);
		if ($vName=='categories') {
			JToolBarHelper::title(
				JText::sprintf('COM_CATEGORIES_CATEGORIES_TITLE', JText::_('com_joomdoc')),
				'joomdoc-categories');
		}
	}
}
